[opentelemetry-instrumentation-genai-smolagents] instrument agent runs - #403
Draft
alexander-akhmetov wants to merge 1 commit into
Draft
Conversation
alexander-akhmetov
force-pushed
the
alexander-akhmetov/smolagents-invoke-agent
branch
3 times, most recently
from
August 19, 2026 23:15
a143831 to
b34031c
Compare
Pull request dashboard statusWaiting on the author · refreshed 2026-08-20 15:38 UTC Move out of draft to request review. Status above doesn't look right?
|
alexander-akhmetov
force-pushed
the
alexander-akhmetov/smolagents-invoke-agent
branch
11 times, most recently
from
August 22, 2026 20:04
e274572 to
3be1988
Compare
alexander-akhmetov
force-pushed
the
alexander-akhmetov/smolagents-invoke-agent
branch
from
August 22, 2026 20:33
3be1988 to
b708def
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds invoke_agent instrumentation and the duration metric for smolagents
MultiStepAgent.run, streaming and non-streaming. The span records the agent name and description, the model, tool and managed-agent definitions, the finish reason, and the task and final answer when content capture is enabled.Known gaps:
CodeAgentwith the defaultexecutor_type="local"writes code and runs it in a worker thread. OpenTelemetry context isn't copied into the thread, so a managed agent called from that code cannot see the parent span.Part of #141
Type of change
How has this been tested?
Checklist
See CONTRIBUTING.md
for the style guide, changelog guidance, and more.